Skip to content

Fix "deprecated trio.Queue" warning #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2019

Conversation

vindard
Copy link
Contributor

@vindard vindard commented Dec 29, 2019

Overview

It looks like trio.Queue was deprecated as of trio 0.9.0 (see here).

This PR pins trio to the version just before this deprecation and then pins trio_async to its latest version that was compatible with trio 0.8.0.


Error message being addressed

This was the error being thrown when using the latest version of trio & trio_async:

Traceback (most recent call last):
  File "prod_trio.py", line 30, in <module>
    async def generate_data(num: int, data: trio.Queue):
  File ".../site-packages/trio/_deprecate.py", line 125, in __getattr__
    raise AttributeError(name)
AttributeError: Queue

@mikeckennedy mikeckennedy merged commit 6c417a4 into talkpython:master Dec 29, 2019
@mikeckennedy
Copy link
Member

Super, thanks for that @vindard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants